//
//  ASDatePicker.h
//  AngelSound
//
//  Created by jumper on 15/8/21.
//  Copyright (c) 2015年 Jumper. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum ASDATE_TYPE
{
    ASDATE_TYPE_DEFAULT,//不带标题的
    ASDATE_TYPE_TITLE //带标题的
    
}ASDATE_TYPE;

@protocol ASDatePickerDelegate <NSObject>

-(void)getDateFromDatePicker:(NSDate *)date;

@end

@interface ASDatePicker : UIView<ASDatePickerDelegate>
{
    UIView *view;
}

/**代理方法**/
@property (nonatomic, retain) id <ASDatePickerDelegate> delegate;

@property (nonatomic, copy) void(^dietOffSwitchBlock)();  //饮食提醒
@property (nonatomic, copy) void(^switchOffBlock)();      //欧博  加的时间关闭的  block

@property(nonatomic , assign)ASDATE_TYPE aType;

@property(nonatomic,strong)NSString *titleStr;

/**时间选择器**/
@property (strong , nonatomic)UIDatePicker *datePicker;

-(void)addDatePickerToCon:(id)controller andWindow:(id)win;

-(void)cancle;

- (void)popCancel;
@end
